package com.manager.devicemanager.service.impl;

import com.manager.devicemanager.entity.ComponentRunStatus1;
import com.manager.devicemanager.mapper.ComponentRunStatus1Mapper;
import com.manager.devicemanager.service.IComponentRunStatus1Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wpf
 * @since 2025-05-29
 */
@Service
public class ComponentRunComponentRunStatus1ServiceImpl extends ServiceImpl<ComponentRunStatus1Mapper, ComponentRunStatus1> implements IComponentRunStatus1Service {
    @Autowired
    private ComponentRunStatus1Mapper componentRunStatus1Mapper;



    @Override
    public ComponentRunStatus1 getLastData(String dataSourceName) {
        return   componentRunStatus1Mapper.selectLastOne();
    }

}
